class WebsocketClientVO:
    def __init__(self, host, token, clientInfo, clashHost:str, clashPath:str, clashToken: str, dev:bool):
        self.clashPath = clashPath
        self.clashHost = clashHost if clashHost.endswith('/') else clashHost + '/'
        self.clashToken = clashToken
        self.host = self.__initHost(host)
        self.token = token
        self.clientInfo = clientInfo
        self.clashWs = None
        self.serverWs = None
        self.dev = dev

    def __initHost(self, host: str) -> str:
        if not host.startswith('ws://'):
            host = 'ws://' + host
        if not host.endswith('/'):
            host = host + '/'
        return host
